//
//  QSWindowFilter.h
//
//  Created by Nicholas Jitkoff on 11/20/05.
//  Copyright 2005 Blacktree, All rights reserved.
//

#import <Cocoa/Cocoa.h>

typedef void *CGSWindowFilterRef;
typedef int		CGSConnectionID;
typedef int		CGSWindowID;
extern CGSConnectionID _CGSDefaultConnection(void);
extern CGError CGSNewCIFilterByName(CGSConnectionID cid, CFStringRef filterName, CGSWindowFilterRef *outFilter);
extern CGError CGSAddWindowFilter(CGSConnectionID cid, CGSWindowID wid, CGSWindowFilterRef filter, int flags);
extern CGError CGSRemoveWindowFilter(CGSConnectionID cid, CGSWindowID wid, CGSWindowFilterRef filter);
extern CGError CGSReleaseCIFilter(CGSConnectionID cid, CGSWindowFilterRef filter);
extern CGError CGSSetCIFilterValuesFromDictionary(CGSConnectionID cid, CGSWindowFilterRef filter, CFDictionaryRef filterValues);


@interface QSWindowFilter : NSObject {
	CGSWindowID wid;
	CGSWindowFilterRef fid;
}
- (void)setFilterName:(NSString *)filter;
- (void)setFilterValues:(NSDictionary *)filterValues;


@end
